home *** CD-ROM | disk | FTP | other *** search
/ Resource for Source: C/C++ / Resource for Source - C-C++.iso / codelib8 / v_10_04 / 1004110a < prev    next >
Encoding:
Text File  |  1995-11-01  |  496 b   |  27 lines

  1. Listing 8
  2. ********
  3.  
  4.    int find_maximum(one, two, three)      
  5.    int one, two, three;  
  6.        {
  7.        int ret;
  8.        if (one > two)            
  9.            if (one > three)  
  10.                {
  11.                ret =  one;          
  12.                goto end;
  13.                }
  14.            else
  15.                {
  16.                ret = three;      
  17.                goto end;
  18.                }
  19.            ...
  20. end:
  21.        printf("find_maximum returning %d", ret);
  22.        return ret;
  23.        }   
  24.  
  25. *******   
  26.  
  27.